package com.cashmanager.client.datasource;

import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.data.fields.DataSourceTextField;
import com.smartgwt.client.types.DSDataFormat;

public class TraceDataSource extends DataSource {

	protected DataSourceTextField number;
	protected DataSourceTextField bankNo;
	protected DataSourceTextField bankName;
	protected DataSourceTextField branchNo;
	protected DataSourceTextField branchName;
	protected DataSourceTextField date;
	protected DataSourceTextField time;
	protected DataSourceTextField source;
	protected DataSourceTextField terminal;
	protected DataSourceTextField operator;
	protected DataSourceTextField charType;
	protected DataSourceTextField type;
	protected DataSourceTextField cashType;

	public void initFields() {
		setID(id);
		setDataFormat(DSDataFormat.XML);
		setRecordXPath("/List/Record");

		number = new DataSourceTextField("number", "冠字号");
		 charType = new DataSourceTextField("charType","特征类别");
         type = new DataSourceTextField("type","版别");
		bankNo = new DataSourceTextField("bankNo", "银行编号");
		bankName = new DataSourceTextField("bankName", "银行名字");

		branchNo = new DataSourceTextField("branchNo", "网点编号");
		branchName = new DataSourceTextField("branchName", "网点名字");

		date = new DataSourceTextField("date", " 记录日期");
		time = new DataSourceTextField("time", "记录时间");
		source = new DataSourceTextField("source", "假币来源");
		terminal = new DataSourceTextField("terminal", " 终端机号");
		operator = new DataSourceTextField("operator", "操作员号");
		cashType = new DataSourceTextField("cashType", "操作员号");


	}


	public TraceDataSource(String id) {
		initFields();
	}

}
